import type { App } from 'vue'

const files = import.meta.glob('@/components/*/*.{tsx,vue}', {
  eager: true,
  import: 'default',
})
export function createComponents(app: App) {
  Object.values(files).forEach((component: any) => {
    app.component(component.name, component)
  })
}
